package com.lh.marketing.runner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@MyScheduled(cron = "0/1 * * * * ? ")
//@Component
@Slf4j
public class BTask implements MyScheduleTask {

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void run() {
        // 直接写具体的业务方法
        System.out.println(Thread.currentThread().getName() + "执行了copy任务");
    }
}

